package com.vcredit.creditcat.service;

import com.vcredit.creditcat.model.SysResource;
import com.vcredit.creditcat.persistence.base.SysResourceMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 
 **/
@Service
public class SysResourceService {
	@Autowired
	private SysResourceMapper mapper;

	public Long insert(SysResource obj) {
		mapper.insert(obj);
		return obj.getResourceId();
	}

	public void update(SysResource obj) {
		mapper.update(obj);
	}

	public void delete(Long id) {
		mapper.delete(id);
	}

	public List<SysResource> findAll() {
		return mapper.findAll();
	}

	public List<SysResource> find(SysResource obj) {
		return mapper.find(obj);
	}
}